﻿using NewProcessGuarder.core;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace NewProcessGuarder.converter
{
    public class OperEnumConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            OperationType ot = (OperationType)value;
            string show = "";
            switch (ot) {
                case OperationType.ProcessGuard:
                    show = "守护进程";
                    break;
                case OperationType.StartPro:
                    show = "启动程序";
                    break;
                case OperationType.StopPro:
                    show = "关闭程序";
                    break;
            }
            return show;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
